package com.kongmou.springDataJpaAdvanced.dao.impl;

import com.kongmou.springDataJpaAdvanced.dao.BaseDaoRepository;
import com.kongmou.springDataJpaAdvanced.domain.Securityobject;
import com.kongmou.springDataJpaAdvanced.view.SecurityView;

import java.util.List;

public interface SecurityobjectRepsository extends BaseDaoRepository<Securityobject, String> {


    default List<SecurityView> selectPersonBysql(){
        String sql = "select name from securityobject ";
        List<SecurityView> person = selectBySql(sql, null, SecurityView.class);
        return person;
    }
}
